package apijson.extend;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import apijson.RequestMethod;

/**
 * 通过注解实现对请求的设置，通过代码实现，避免了对request的操作
 */
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Inherited
@Repeatable(RequestStructures.class)
public @interface RequestStructure {
	RequestMethod method() default RequestMethod.GET;

	String tag() default "";

	String structure() default "{}";

	String detail() default "";

	int version() default 1;
}
